<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>title</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" th:href="@{/layui/css/layui.css}" media="all">
    <script th:src="@{/layui/layui.js}" charset="utf-8"></script>
    <script th:src="@{/js/jquery-2.2.3.min.js}" charset="utf-8"></script>
    <link rel="shortcut icon" href="../resources/favicon.ico" th:href="@{/static/favicon.ico}"/>

<body>
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 50px;text-align: center">
    <legend>抽奖设置</legend>
</fieldset>
<form class="layui-form layui-form-pane" action="">
   
    <div class="layui-form-item">
        <div class="layui-inline"> <label class="layui-form-label">日期选择</label>
            <div class="layui-input-block">
                <input type="text" name="date" id="date1" autocomplete="off" class="layui-input">
            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-inline"> <label class="layui-form-label">中将概率</label>
            <div class="layui-input-inline" style="width: 100px;margin-top: 10px">
                <div id="slideTest1" class="demo-slider"></div>
            </div>

        </div>
    </div>
    <div class="layui-form-item"> <label class="layui-form-label">抽奖黑名单（只抽不中）</label>
        <div class="layui-input-block"> <select name="interest" lay-filter="aihao"> <option value=""></option> <option value="0">小明</option> <option value="1" selected="">小杰</option> <option value="2">小红</option> <option value="3">小刚</option> <option value="4">小青</option> </select>
        </div>
    </div>
    <div class="layui-form-item" pane=""> <label class="layui-form-label">抽奖器</label>
        <div class="layui-input-block">
            <input type="radio" name="sex" value="大转盘" title="大转盘" checked="">
            <input type="radio" name="sex" value="红包" title="红包">
        </div>
    </div>
    <div class="layui-form-item layui-form-text"> <label class="layui-form-label">抽奖规则</label>
        <div class="layui-input-block"> <textarea placeholder="请输入内容" class="layui-textarea"></textarea>
        </div>
    </div>
    <div class="layui-form-item"> <button class="layui-btn" lay-submit="" lay-filter="demo2">提交</button>
    </div>
</form>

<script>
    layui.use(['form', 'layedit', 'laydate','slider'], function(){
        var form = layui.form
            ,layer = layui.layer
            ,layedit = layui.layedit
            ,laydate = layui.laydate
    ,slider = layui.slider;
        //默认滑块
        slider.render({
            elem: '#slideTest1'
        });
        //监听提交
        form.on('submit(demo2)', function(data){
            layer.msg("提交成功");
            location.reload();
        });
    });
</script>
</body>
</html>